package com.xxwu.springgobang.service;

import com.xxwu.springgobang.mapper.UserMapper;
import com.xxwu.springgobang.model.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService {

    @Resource
    private UserMapper userMapper;

    public User getUserByName(String username) {
        return userMapper.selectByName(username);
    }

    public int insert(User user) {
        return userMapper.insert(user);
    }
}
